package com.wmh.baseservice.user.service.impl;

import com.wmh.baseservice.common.mybatisplus.methods.CommonServiceImpl;
import com.wmh.baseservice.user.mapper.UsRentOrderMapper;
import com.wmh.baseservice.user.pojo.UsRentOrder;
import com.wmh.baseservice.user.service.UsRentOrderService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * @author wmh generator
 * @since 2022-02-25
 */
@Service
public class UsRentOrderServiceImpl extends CommonServiceImpl<UsRentOrderMapper, UsRentOrder> implements UsRentOrderService {

    @Resource
    private UsRentOrderMapper usRentOrderMapper;
    @Override
    public void cancelOrder(Long value) {
        usRentOrderMapper.cancelOrder(value);
    }

    @Override
    public List<UsRentOrder> queryMyRentOrder(Long id) {
        return usRentOrderMapper.queryMyRentOrder(id);
    }

    @Override
    public int queryShortOrder(Long usId) {
        return usRentOrderMapper.queryShortOrder(usId);
    }
}
